package com.superlearning;

public class Son extends father{
    public void hi() {
        System.out.println(super.m_Name);
        System.out.println(super.m_Tresure);


        System.out.println(super.getTresure());
        System.out.println(super.getName());
    }
    public Son() {
        super("sdf", 100);
    }
    public void Cal() {
        System.out.println("这是Son类中的Cal调用");
    }
    public void test01() {
        Cal();
        this.Cal();
        super.Cal();
    }
    public void test02() {
        System.out.println(m_Flag);
        System.out.println(this.m_Flag);
        System.out.println(super.m_Flag);
    }

    public String m_Flag = "Son";

}



